package com.selenium.handle;

import com.selenium.base.DriverBase;
import com.selenium.page.LoginPage;

public class LoginPageHandle {
	
	DriverBase driver;
	LoginPage lp;
	public LoginPageHandle(DriverBase driver) {
		this.driver = driver;
		this.lp = new LoginPage(driver);
	}
	
	
	public void sendKeysUser(String value) {
		lp.sendKeys(lp.getUserElement(), value);
	}
	
	
	public void sendKeysPassword(String value) {
		lp.sendKeys(lp.getPasswordInputElement(), value);
	}
	
	public void clickSignButton() {
		lp.click(lp.getSignButtonElement());
	}
	
	public void clickLoginButton() {
		lp.click(lp.getLoginButtonElement());
	}
	
	public boolean assertLogin() {
		return lp.assertElementIs(lp.getLoginButtonElement());
	}
	

}
